<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta name=”viewport” content=”width=device-width, initial-scale=1″ />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ASTS-客户工作台</title>
<script src="/customer_plat/public/javascripts/assets/js/jquery1.11.1.min.js"></script>
<script type="text/javascript" src="/customer_plat/public/javascripts/assets/chosen/amazeui.chosen.js"></script>
<script type="text/javascript" src="/customer_plat/public/javascripts/echarts-all.js?t=${System.currentTimeMillis()}"></script>

<link rel="stylesheet" href="/customer_plat/public/javascripts/assets/css/amazeui.min.css" />
 <link rel="stylesheet" href="/customer_plat/public/javascripts/assets/css/admin.css">
 <link rel="stylesheet" href="/customer_plat/public/javascripts/assets/chosen/amazeui.chosen.css" />
  <link rel="stylesheet" href="/customer_plat/public/select2/select2.min.css" />
 
<!--[if lt IE 9]>
<script src="/customer_plat/public/javascripts/assets/js/jquery1.11.1.min.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/modernizr.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/polyfill/rem.min.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/polyfill/respond.min.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/amazeui.legacy.js"></script>
<![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/customer_plat/public/javascripts/stringBuffer.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/amazeui.min.js"></script>
<script type="text/javascript" src="/customer_plat/public/javascripts/assets/chosen/amazeui.chosen.js"></script>
<!--<![endif]-->
<script src="/customer_plat/public/javascripts/assets/js/app.js"></script>
 <script type="text/javascript" src="/customer_plat/public/select2/select2.min.js"></script>
<script>
 
	function goUrl(url) {
		window.location.href = url;
	}
	$(function(){
		$("#useCutterSubmit").click(function(){ 
			var d = new Date();
			var str = d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
			var start_date = $("#start_date").val()?$("#start_date").val():str;
			var end_date = $("#end_date").val()?$("#end_date").val():str;
			$("#start_date").datepicker('setValue', start_date);	
			$("#end_date").datepicker('setValue', end_date)	;
			 $("#myForm").submit();
		})
		
	})
</script>
<!-- content start -->
<script>

	function getCuttereByProjectId(cutter_id,sel_id){
		 var params ={};
		 params.project_id = cutter_id;
		 $.post("getProjectCutter",params,function(data){
			 $(sel_id).html("");
			 var cutters = data.data;
				var str = "<option value='' >---选择刀具---</option>";
				for(var i =0;i<cutters.length;i++){
					if(cutters[i].status=="0"){
					str+="<option value='"+cutters[i].material_id+"'>"+cutters[i].customer_specs_no+"/"+cutters[i].process_name+"/"+cutters[i].simple_specs_cust+"</option>";	
					}else{
						str+="<option value='"+cutters[i].material_id+"'>"+cutters[i].customer_specs_no+"/"+cutters[i].process_name+"/"+cutters[i].simple_specs_cust+"(已删)"+"</option>";	
					}
				}
				$(sel_id).html(str);
			 
		 });
		
	}
	$(function() {
		$("#start_date").datepicker({format: 'yyyy-mm-dd'});
		 $("#end_date").datepicker({format: 'yyyy-mm-dd'});
		$("#inv_material_id").select2();
		$("#project_id").select2();
		$("#material_id").select2();
		$("#supplier_id").select2();
		$("#estimate_project_id").select2();
		$("#estimate_material_id").select2();
		$("#estimate_supplier_id").select2();
		$("#operator_id").select2();
		$("#rec_desc").select2();
		$("#type").select2();
		$("#isAll").select2();
		if($("#project_id").val()!=""){
			getCuttereByProjectId($("#project_id").val(),"#material_id");
		}
		$("#project_id").change(function(){
			if($(this).val()!=""){
				 getCuttereByProjectId($(this).val(),"#material_id");
			} 
		})
		
		if($("#estimate_project_id").val()!=""){
			getCuttereByProjectId($("#estimate_project_id").val(),"#estimate_material_id");
		}
		$("#estimate_project_id").change(function(){
			if($(this).val()!=""){
				 getCuttereByProjectId($(this).val(),"#estimate_material_id");
			} 
		})
		if($("#hiddenRecDesc").val()!=""){
			$('#rec_desc').val($("#hiddenRecDesc").val());
			$('#rec_desc').change();
		}
		
	})
</script>
<body style="height: 100%;">
 	<form action="index"  id="myForm">
<div class="admin-content"   >
	<div class="am-cf am-padding">
		<div class="am-fl am-cf">
			<strong class="am-text-primary am-text-lg">主页</strong> / <small>Home</small>
		</div>
	</div>
	<ul
		class="am-avg-sm-1 am-avg-md-6 am-margin am-padding am-text-center admin-content-list ">
		<li><a href="#" class="am-text-warning"><span
				class="am-icon-btn am-icon-briefcase"></span><br />今日领用<br />${useNum}</a></li>
		<li><a href="#" class="am-text-danger"><span
				class="am-icon-btn am-icon-user-md"></span><br />领刀人数<br />${useCount}</a></li>
		<li><a href="#" class="am-text-danger"><span
				class="am-icon-btn am-icon-recycle"></span><br />今日回收<br />${recNum}</a></li>
				<li><a href="#" class="am-text-danger"><span
				class="am-icon-btn am-icon-recycle"></span><br />总回收寿命<br />${cutterLifeSUM}</a></li> 
				<li><a href="#" class="am-text-danger"><span
				class="am-icon-btn am-icon-recycle"></span><br />平均回收寿命<br />${cutterLifeAVG}</a></li> 
		<li><a href="#" class="am-text-danger"><span
				class="am-icon-btn am-icon-user-md"></span><br />回收人数<br />${recCount}</a></li> 
	</ul>
	 <div class="am-g" style="float: left;">
				<div class="am-u-md-12">
			<div class="am-panel am-panel-default">
				<div class="am-panel-hd am-cf" data-am-collapse="{target: '#collapse-panel-1'}">
					刀具库存及预估产能统计表<span class="am-icon-chevron-down am-fr"></span>&nbsp;&nbsp;&nbsp;
			<select id="estimate_project_id" name="estimate_project_id"  class="form-control"  >
					<option value="">---选择项目---</option>
						#{if projects!=null} 
						#{list items:projects?.data,as:'bean'}
						#{if bean?.project_id != estimate_project_id}
						<option value="${bean?.project_id}">${bean?.project_name}</option>
						#{/if}
						#{else}
						<option value="${bean?.project_id}" selected="selected">${bean?.project_name}</option>
						#{/else}
						#{/list} 
						#{/if}
				</select>
				<select id="estimate_material_id" name="estimate_material_id" style="width: 17.33%;" class="form-control"  >
					<option value="">---选择刀具---</option>
						#{if custCutters!=null} 
						#{list items:custCutters?.data,as:'bean'}
						#{if bean?.material_id != estimate_material_id}
						<option value="${bean?.material_id}">${bean?.customer_specs_no}/${bean?.simple_specs_cust}</option>
						#{/if}
						#{elseif estimate_material_id!=''}
						<option value="${bean?.material_id}" selected="selected">${bean?.customer_specs_no}/${bean?.simple_specs_cust}</option>
						#{/elseif}
						#{/list} 
						#{/if}
				</select>
						<select id="estimate_supplier_id" name="estimate_supplier_id" class="form-control" style="width: 180px;">
 				 <option value="">---供应商---</option>
 						#{if suppliers!=null} 
						#{list items:suppliers?.data,as:'bean'}
						#{if bean?.supplierId != estimate_supplier_id}
						<option value="${bean?.supplierId}">${bean?.shortName}</option>
						#{/if}
						#{else}
						<option value="${bean?.supplierId}" selected="selected">${bean?.shortName}</option>
						#{/else}
						#{/list} 
						#{/if}
				</select>
				 <input type="text" id="estimate_start_date" name="estimate_start_date" value="${estimate_start_date}" class="am-form-field" style="height:36px;width: 150px;display: inline;" placeholder="起始日期" data-am-datepicker readonly required />
				&nbsp;&nbsp;
			 <input type="text" id="estimate_end_date" name="estimate_end_date"  value="${estimate_end_date}" class="am-form-field" style="height:36px;width: 150px;display: inline;" placeholder="结束日期" data-am-datepicker readonly required />
				&nbsp;&nbsp;
				<button type="submit" id="invSubmit" class="am-btn am-btn-primary btn-loading-example" style="height:38px;width: 80px;display: inline; padding-top: -10px;">查询</button>
				<button type="button" onclick="downEstimate()" class="am-btn am-btn-primary btn-loading-example" style="height:38px;width: 80px;display: inline; padding-top: -10px;">导出</button>
					<div  style="overflow:scroll;height: 400px;">
			<table class="am-table am-table-striped am-table-hover table-main" id="cutter_estimate_table">
				<thead>
					<tr>
						<th class="table-check"><input type="checkbox" /></th>
						<th class="table-title">供应商简称</th>
						<th class="table-title">物料编号/物料简称/物料全称</th>
						<th class="table-title">项目名称</th>
						<th class="table-title">工序名称</th>
						<th class="table-type">领用数量</th>
						<th class="table-type">已排配数量</th>
						<th class="table-date am-hide-sm-only">现有库存</th>
						<th class="table-date am-hide-sm-only">净库存</th>
						<th class="table-title">对应产能</th>
						
					</tr>
				</thead>
				<tbody>
					#{if cutterEstimateObj!=null} #{set count:1/} #{list
					items:cutterEstimateObj.data,as:'bean'}
					<tr >
						<td><input type="checkbox" /></td>
						<td>${bean?.supp_name}</td>
						<td>${bean?.customer_specs_no}/${bean?.simple_specs_cust}/${bean?.long_specs_cust}</td>
						<td>${bean?.project_name}</td>
						<td class="am-hide-sm-only">${bean?.process_name}</td>
						<td class="am-hide-sm-only">${bean?.use_num}</td>
						<td class="am-hide-sm-only">${bean?.cutter_num}</td>
						<td class="am-hide-sm-only">${bean?.inventory_num}</td>
						<td class="am-hide-sm-only">${bean?.inventory_num - bean?.cutter_num + bean.use_num}</td>
						<td class="am-hide-sm-only">${bean?.cutter_life}</td>
 					</tr>
					#{/list} #{/if}
				</tbody>
			</table>	</div>
				</div>
			</div>
		</div>
		</div>
	 <div class="am-u-md-12">
			<div class="am-panel am-panel-default">
			<input type="hidden" value="${useCutterObj.conditions.rec_desc}" id="hiddenRecDesc">
				<div class="am-panel-hd am-cf" data-am-collapse="{target: '#collapse-panel-1'}">
					今日领用回收<span class="am-icon-chevron-down am-fr"></span>&nbsp;&nbsp;&nbsp;
					<select id="project_id" name="project_id"  class="form-control"  >
					<option value="">---选择项目---</option>
						#{if projects!=null} 
						#{list items:projects?.data,as:'bean'}
						#{if bean?.project_id != useCutterObj?.conditions?.project_id}
						<option value="${bean?.project_id}">${bean?.project_name}</option>
						#{/if}
						#{else}
						<option value="${bean?.project_id}" selected="selected">${bean?.project_name}</option>
						#{/else}
						#{/list} 
						#{/if}
				</select>
				<select id="material_id" name="material_id" style="width: 17.33%;" class="form-control"  >
					<option value="">---选择刀具---</option>
						#{if custCutters!=null} 
						#{list items:custCutters?.data,as:'bean'}
						#{if bean?.material_id != useCutterObj?.conditions?.mid}
						<option value="${bean?.material_id}">${bean?.customer_specs_no}/${bean?.simple_specs_cust}</option>
						#{/if}
						#{else}
						<option value="${bean?.material_id}" selected="selected">${bean?.customer_specs_no}/${bean?.simple_specs_cust}</option>
						#{/else}
						#{/list} 
						#{/if}
				</select>
				
					<select id="operator_id" name="operator_id" class="form-control"  style="width: 180px;">
					<option value="">---选择操作员---</option>
						#{if operators!=null} 
						#{list items:operators?.data,as:'bean'}
						#{if bean?.operator_id != useCutterObj?.conditions?.oid}
						<option value="${bean?.operator_id}">${bean?.real_name}</option>
						#{/if}
						#{else}
						<option value="${bean?.operator_id}" selected="selected">${bean?.real_name}</option>
						#{/else}
						#{/list} 
						#{/if}
				</select>
				<select id="type" name="type" class="form-control" style="width: 120px;">
 				 <option value="">---类型---</option>
 					#{if useCutterObj?.conditions?.type!='null' && useCutterObj?.conditions?.type!=''} 
						#{if useCutterObj?.conditions?.type == '1'}
						<option value="1" selected="selected">领用</option>
										<option value="2">回收</option>
						#{/if}
						#{else}
								<option value="1"  >领用</option>
										<option value="2" selected="selected">回收</option>
						#{/else}
					 
						#{/if}
					#{else}
 					<option value="1">领用</option>
					<option value="2">回收</option>
					#{/else}
				</select>
				<select id="supplier_id" name="supplier_id" class="form-control" style="width: 180px;">
 				 <option value="">---供应商---</option>
 						#{if suppliers!=null} 
						#{list items:suppliers?.data,as:'bean'}
						#{if bean?.supplierId != useCutterObj?.conditions?.sid}
						<option value="${bean?.supplierId}">${bean?.shortName}</option>
						#{/if}
						#{else}
						<option value="${bean?.supplierId}" selected="selected">${bean?.shortName}</option>
						#{/else}
						#{/list} 
						#{/if}
				</select>
				<select id="rec_desc"  style="width: 150px;" name="rec_desc"   >
					<option value="">---回收原因---</option>
					<option value="断刀">断刀</option>
					<option value="崩刃">崩刃</option>
					<option value="横刀纹">横刀纹</option>
					<option value="竖刀纹">竖刀纹</option>
					<option value="起皱">起皱</option>
					<option value="侧面披锋">侧面披锋</option>
					<option value="正常磨损">正常磨损</option>
				</select> 
			 <input type="text" id="start_date" name="start_date" value="${useCutterObj?.conditions?.start_date}" class="am-form-field" style="height:36px;width: 150px;display: inline;" placeholder="起始日期" data-am-datepicker readonly required />
				&nbsp;&nbsp;
			 <input type="text" id="end_date" name="end_date"  value="${useCutterObj?.conditions?.end_date}" class="am-form-field" style="height:36px;width: 150px;display: inline;" placeholder="结束日期" data-am-datepicker readonly required />
				&nbsp;&nbsp;
			<br> 
 				<button type="button" id="useCutterSubmit" class="am-btn am-btn-primary btn-loading-example" style="height:38px;width: 80px;display: inline; padding-top: -10px;margin-left: 115px;">查询</button>
				<button type="button" onclick="downCutter()" class="am-btn am-btn-primary btn-loading-example"   >导出</button>
				<span style="float: right;font-size: 16px;margin-top: 10px;">领用总数:${useCutterObj.use_num}/回收总数:${useCutterObj.rec_num}&nbsp;&nbsp;&nbsp;总回收刀寿命:${useCutterObj.rec_life_sum}/平均寿命${useCutterObj.rec_life_avg}</span>
				</div>
				 	<table class="am-table am-table-striped am-table-hover table-main">
				<thead>
					<tr>
						<th class="table-check"><input type="checkbox" /></th>
						<th class="table-title">物料编码</th>
						<th class="table-title">规格简称</th>
						<th class="table-title">规格全称</th>
						<th class="table-title">供应商</th>
						<th class="table-author am-hide-sm-only">操作人</th>
						<th class="table-type">数量</th>
						<th class="table-type">操作类型</th>
						<th class="table-date am-hide-sm-only">操作时间</th>
						<th class="table-title">操作原因</th>
						<th class="table-title">寿命</th>
					</tr>
				</thead>
				<tbody>
					#{if useCutterObj!=null} #{set count:1/} #{list
					items:useCutterObj?.page,as:'bean'}
					<tr>
						<td><input type="checkbox" /></td>
						<td>${bean?.customer_specs_no}</td>
						<td>${bean?.simple_specs_cust}</td>
						<td>${bean?.long_specs_cust}</td>
						<td class="am-hide-sm-only">${bean?.supp_name}</td>
						<td class="am-hide-sm-only">${bean?.real_name}</td>
						<td>${bean?.num}</td>
						<td>${bean?.type}</td>
						<td>${bean?.time}</td>
						<td>${bean?.rec_desc}</td>
						<td>${bean?.cutter_life}</td>
 					</tr>
					#{/list} 
					#{/if}
				</tbody>
			</table>
						#{page currPage:useCutterObj.currPage,pageSize:useCutterObj.pageSize,totalCount:useCutterObj.totalCount}operator_id=${useCutterObj.conditions.oid}&date=${useCutterObj.conditions.date}&material_id=${useCutterObj.conditions.mid}&start_date=${useCutterObj.conditions.start_date}&end_date=${useCutterObj.conditions.end_date}&project_id=${useCutterObj.conditions.project_id}&type=${useCutterObj.conditions.type}&supplier_id=${useCutterObj.conditions.sid}&rec_desc=${useCutterObj.conditions.rec_desc}#{/page}
			</div>
		</div>
	</div>
	<div class="am-g" style="float: left;">
				<div class="am-u-md-12">
			<div class="am-panel am-panel-default">
				<div class="am-panel-hd am-cf"
					data-am-collapse="{target: '#collapse-panel-1'}">
					实时库存<span class="am-icon-chevron-down am-fr"></span>&nbsp;&nbsp;&nbsp;
			<select id="inv_material_id" name="inv_material_id" class="form-control"  >
					<option value="">---选择刀具---</option>
						#{if custCutters!=null} 
						#{list items:custCutters.data,as:'bean'}
						#{if bean?.material_id != inv_material_id}
						<option value="${bean?.material_id}">${bean?.simple_specs_cust}</option>
						#{/if}
						#{else}
						<option value="${bean?.material_id}" selected="selected">${bean?.simple_specs_cust}</option>
						#{/else}
						#{/list} 
						#{/if}
				</select>
				
				<select id="isAll" name="isAll" class="form-control"  >
					<option value="0">---默认查询所有 ---</option>
					<option value="1">查询大于0的库存</option>
				</select>
				<button type="submit" id="invSubmit" class="am-btn am-btn-primary btn-loading-example" style="height:38px;width: 80px;display: inline; padding-top: -10px;">查询</button>
								<button type="button" onclick="downInventroy()" class="am-btn am-btn-primary btn-loading-example" style="height:38px;width: 80px;display: inline; padding-top: -10px;">导出</button>
				
					<div  style="overflow:scroll;height: 400px;">
					<table class="am-table am-table-striped am-table-hover table-main" >
				<thead>
					<tr>
						<th class="table-check"><input type="checkbox" /></th>
						<th class="table-title">物料编码</th>
						<th class="table-title">规格简称</th>
						<th class="table-title">规格全称</th>
						<th class="table-title">供应商</th>
						<th class="table-type">当前库存</th>
						<th class="table-type">安全库存</th>
						<th class="table-date am-hide-sm-only">统计时间</th>
						<th class="table-title">操作</th>
						
					</tr>
				</thead>
				<tbody>
					#{if invObj!=null} #{set count:1/} #{list
					items:invObj.data,as:'bean'}
					#{if bean?.now_num>bean?.safe_num}
					<tr class="am-success">
					#{/if}
					#{else}
					<tr class="am-danger">
					#{/else}
						<td><input type="checkbox" /></td>
						<td>${bean?.customer_specs_no}</td>
						<td>${bean?.simple_specs_cust}</td>
						<td>${bean?.long_specs_cust}</td>
						<td class="am-hide-sm-only">${bean?.supp_name}</td>
						<td class="am-hide-sm-only">${bean?.now_num}</td>
						<td class="am-hide-sm-only">${bean?.safe_num}</td>
						<td>${bean?.date}</td>
						<td><a href="javascript:invDetails('${bean.material_id}')">查看详情</a></td>
 					</tr>
					#{/list} #{/if}
				</tbody>
			</table>	</div>
				</div>
			</div>
		</div>
		</div>
 	</form>
 	
</body>
<div class="am-modal am-modal-no-btn" style="width: 1500px;height: 600px; margin-left: -750px;" tabindex="-1" id="your-modal">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">库存详情
      <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
    </div>
    <div class="am-modal-bd" style="width:1500px;height:500px; overflow: auto;">
 	<table class="am-table am-table-striped am-table-hover table-main"  >
				<thead>
					<tr>
						<th class="table-title">终端id</th>
						<th class="table-title">弹夹id</th>
						<th class="table-title">物料编码</th>
						<th class="table-title">规格简称</th>
						<th class="table-title">规格全称</th>
						<th class="table-title">供应商</th>
						<th class="table-type">当前库存</th>
						<th class="table-date am-hide-sm-only">统计时间</th>
					</tr>
				</thead>
				<tbody id="invDetailsTbody"></tbody>
			</table>
     </div>
  </div>
</div>



<script>
function invDetails(cutter_id){
    var $modal = $('#your-modal');
    $modal.modal('open');
    var params = {};
    params.material_id = cutter_id;
    $.post("getInventoryDetail",params,function(data){
    	 var invdetails = data.data;
		$("#invDetailsTbody").html("");
		var str = "";
    	 for(var i =0;i<invdetails.length;i++){
			str+="<td>"+invdetails[i].terminal_id+"</td>";
			str+="<td>"+invdetails[i].clip_id+"</td>";
			str+="<td>"+invdetails[i].customer_specs_no+"</td>";
			str+="<td>"+invdetails[i].simple_specs_cust+"</td>";
			str+="<td>"+invdetails[i].long_specs_cust+"</td>";
			str+="<td>"+invdetails[i].supp_name+"</td>";
			str+="<td>"+invdetails[i].num+"</td>";
			str+="<td>"+invdetails[i].time+"</td>";
			str+="</tr>";
			}
    	 $("#invDetailsTbody").html(str);
    	 
    })
}
function Appendzero (obj) {
	console.log(obj)
	if (obj < 10) return "0" + obj; 
	else return obj;
}
function downCutter(){
	var d = new Date();
	var str = d.getFullYear()+"-"+(Appendzero(d.getMonth()+1))+"-"+Appendzero(d.getDate());
	var project_id = $("#project_id").val();
	var operator_id = $("#operator_id").val();
	var material_id = $("#material_id").val();
	var start_date = $("#start_date").val()?$("#start_date").val():str;
	var end_date = $("#end_date").val()?$("#end_date").val():str; 
	var type = $("#type").val();
	var excelUrl  = "downUseCutter?start_date="+start_date+"&end_date="+end_date+"&project_id="+project_id+"&operator_id="+operator_id+"&material_id="+material_id+"&type="+type;
	window.location.href=excelUrl;
}
function downInventroy(){
	var isAll = $("#isAll").val();
	var inv_material_id = $("#inv_material_id").val();
	var excelUrl  = "downInventoryDetail?&inv_material_id="+inv_material_id+"&isAll="+isAll;
	window.location.href=excelUrl;
}
function downEstimate(){
	var estimate_start_date = $("#estimate_start_date").val();
	var estimate_end_date = $("#estimate_end_date").val();
	var estimate_project_id = $("#estimate_project_id").val();
	var estimate_supplier_id = $("#estimate_supplier_id").val();
	var estimate_material_id = $("#estimate_material_id").val();
	var excelUrl  = "downEstimate?&estimate_start_date="+estimate_start_date+"&estimate_end_date="+estimate_end_date+"&estimate_project_id	="+estimate_project_id+"&estimate_supplier_id="+estimate_supplier_id+"&estimate_material_id="+estimate_material_id;
	window.location.href=excelUrl;
}
function downCost(){
	var estimate_start_date = $("#estimate_start_date").val();
	var estimate_end_date = $("#estimate_end_date").val();
	var estimate_project_id = $("#estimate_project_id").val();
	var estimate_supplier_id = $("#estimate_supplier_id").val();
	var estimate_material_id = $("#estimate_material_id").val();
	var excelUrl  = "getProjectCutterCostRecord?&start_date="+estimate_start_date+"&end_date="+estimate_end_date+"&estimate_project_id	="+estimate_project_id+"&estimate_supplier_id="+estimate_supplier_id+"&estimate_material_id="+estimate_material_id;
	window.location.href=excelUrl;
}
</script>

<script type="text/javascript"> 
</script>
